<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>EA | Login</title>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet" />
    <link th:href="@{/font-awesome/css/font-awesome.css}" rel="stylesheet" />
    <link th:href="@{/css/plugins/toastr/toastr.min.css}" rel="stylesheet" />
    <link th:href="@{/css/animate.css}" rel="stylesheet" />
    <link th:href="@{/css/style.css}" rel="stylesheet" />
</head>

<body class="gray-bg">

    <div id="login-block" class="middle-box text-center loginscreen animated fadeInDown">
        <div>
            <div>
                <h1 class="logo-name">EA</h1>
            </div>
            <h3>Welcome to EnterpriseAsset</h3>
            <p>最好用的企业固定资产管理系统</p>
            <!--<p>Login in. To see it in action.</p>-->
            <form class="m-t" role="form">
                <div class="form-group">
                    <input v-model="username" type="text" class="form-control" placeholder="Username" required="" />
                </div>
                <div class="form-group">
                    <input v-model="password" type="password" class="form-control" placeholder="Password" required="" />
                </div>
                <input v-on:click="login" class="btn btn-primary block full-width m-b" type="button" value="Login" />
                <!--<button v-on:click="login" type="submit" class="btn btn-primary block full-width m-b">Login</button>-->

                <!--<a href="#"><small>Forgot password?</small></a>-->

                <!--注册用户-->
                <!--<p class="text-muted text-center"><small>Do not have an account?</small></p>
                <a class="btn btn-sm btn-white btn-block" href="register.html">Create an account</a>-->
            </form>
            <p class="m-t"> <small>Mr.J &copy; 2017</small> </p>
        </div>
    </div>

    <script th:inline="javascript">
        var baseUrl = [[${#httpServletRequest.getContextPath()}]];
    </script>
    <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
    <!-- Mainly scripts -->
    <script th:src="@{/js/main/jquery-2.1.1.js}"></script>
    <!--<script>if (typeof module === 'object') {window.jquery = window.jQuery = window.$ = module.exports;}</script>-->
    <script th:src="@{/js/main/bootstrap.min.js}"></script>
    <script th:src="@{/js/main/vue.js}"></script>

    <!-- plugins -->
    <script th:src="@{/js/plugins/toastr/toastr.min.js}"></script>
    <script th:src="@{js/plugins/validate/jquery.validate.min.js}"></script>

    <!-- Custom javascript -->
    <!--<script th:src="@{/js/jquery.md5.js}"></script>-->
    <script th:src="@{/js/md5.js}"></script>
    <script th:src="@{/js/common.js(_r=${#strings.randomAlphanumeric(5)})}"></script>
    <script th:src="@{/js/web.js(_r=${#strings.randomAlphanumeric(5)})}"></script>
    <script th:src="@{/js/server.js(_r=${#strings.randomAlphanumeric(5)})}"></script>
    <script th:src="@{/js/login.js(_r=${#strings.randomAlphanumeric(5)})}"></script>
    <script>if (window.module) module = window.module;</script>

</body>

</html>
